Restructure a bit
Establish a database connection for tests
Configure Foreman and friends
A tiny console script
Basic infrastructure: logger, environment, active record