Working with real queues
Refactored server to run under rake