Connect to database before invoking reloader
Connect to database before invoking reloader

The reloader typically reloads the routes file, which may reference AR
models, which may access the database. So we need a connection at this
point, in general.

Fixes #167.

rails/spring,pigoz/spring,mariusbutuc/spring,y-yagi/spring,maclover7/spring,grosser/spring,ypresto/spring,smathy/spring,universsky/spring-1,slobodankovacevic/spring