added replacement handler to provide warnings for invalid routes
made server error on init if provided with a bad route, added tests
1.0.6