Relations can now be a method or a property

You have now 2 ways to declare a relation : 

````javascript
{
    relations: []
}
````

or 

````javascript
{
    relations: function () {
        return [];
    }
}
````

(I also removed trailing spaces)