Don't try to use routes when called from cli
Use dummy request method in CLI
Fix previous commit
Merge pull request #1531 from owncloud/cron_no_routes

Fix router warnings when running as CLI