Removing adaptToDevice call from main.js
Added system.assert.
Better support for query strings in the new router.