Catalog manager and study manager + small changes

- Refactored catalog and study manager (see https://github.com/molgenis/molgenis/pull/760)
- Use profile to switch between catalog service

Please review this pull request together with molgenis

TODO: add more tests