Remove collections.js in favour of using models directly

This removes the confusing separation between collections.js and
models.js. All the functionality is now provided by models.js which is
also more explicit in defining models.