WIP: add helper methods to main app

- still having issues with circular redirects
- unable to get session and cookies available to the engine