Fix initial application setup error

Running database migrations or loading the schema hits up the routes file, which makes everything blow up because the model isn't ready to use yet.

Also update debugger so it compiles if your ruby setup is odd.