Refactor all the things

![clean all the things](https://f.cloud.github.com/assets/24421/1293151/eabfac84-305f-11e3-883c-3f2ebfcbbdb7.png)

- Push the database calls into the Database class
- Add tests for metrics
- Test that the 'pusher.secure' config is handled correctly
- Pretty up the RSpec output
- Add '.ruby-version'