Model and collection bases to make angularJS integration with rails quicker