Single rest clients that contains user, users, projects, and orgs clients
@param {string} baseUrl - the base url
function RestClient(baseUrl) {

    if (typeof baseUrl !== 'string') {
        if (typeof document !== 'undefined') {
            baseUrl = document.getElementById('baseUrlHolder').getAttribute('data') + '/api/';
        } else {
            baseUrl = '/api/';
        }
    }
    this.organizations = new OrganizationsClient(baseUrl);
    this.projects = new ProjectsClient(baseUrl);
    this.user = new UserClient(baseUrl);
    this.users = new UsersClient(baseUrl);

    /**
     * Gets the current user
     * @return {Promise} //TODO: How to document the resolved value.
     */
    this.getStatus = () => {
        return this.user.get(['status']);
    };
}