Bugfix in SpaceDirectory: wrong variable name, wrong conditions.

In the SpaceDirectory class $operator_version
was used instead of $version, the public website
wasn't affected, only cli calls.

Some conditions were wrong when processing GET
requests on the directory. The output depends on
the query parameters.
Note added about how to add a submodule
Bugfix: 'Array' output with JSON properties that have multiple types