Added global_namespace flag to API

You can now create projects in the global namespace through the API.
This is made by introducing an optional field `global_namespace` to the
method that responds to 'POST /projects'. 

This implements the feature suggested in #2618