WIP Implement device-based tracking.
Rename :user_agent to :http_user_agent.
Setup database_cleaner for tests.
Add tests for Device and fix a few bugs.