Make the API endpoint to update project's options accept JSON
Up until now that API endpoint only accepted HTTP arguments but
it is sometime useful to send the update as a JSON blob instead
of different arguments. This API endpoint will now support both
approaches.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>