Remove reliance on internal structure for emptiness test

By using `isEmpty` instead of querying the internals of the collection we can reduce the coupling between the collection's data-structure and the view.
Update spec.realtime.js

Fix typo
Let the app work with pm2
 - https://github.com/Unitech/pm2/issues/343
 - Basically requirejs
 - We need to set the baseUrl before we try and require the config file inside requirejs
Merge pull request #604 from alphagov/feature/pm2-compatible

Let the app work with pm2
Merge pull request #601 from alphagov/refactor/the-matrix

Remove reliance on internal structure for emptiness test