Add models from relations

/to @bajtos 
/cc @STRML

The PR adds related models into the Swagger spec so that REST operations for relations are correctly typed.
Well, the idea is to build models for REST endpoints for a given model, such as User. The relations object in the test case is a mockup to User.relations which contains relation definitions, such as HasMany Order.