Fixed api relation model and validate association.
Api id uniqueness scoped with type.
Fixtures fixed.
Initialize random id on relation.
Tests fixed.
Changed fixtures with factory girl.
Test for keep api id between changes.
Check for wrong api requests.
Build relation on initialize and use api id if exist.
Method for api json.
Minor changes.
Test for json response.
Merge branch 'development'