Migrate to barebones Rails app.
Add rspec integration.
Implement device discovery and persistence.