Authentication Fixes and Working Application

Hello,

This is the pull request I submitted to the other fork. This fixes authentication and provides all missing files and commits required to run a local copy of the app. Unfortunately this merges in multiple forks but it is the only way to provide your missing modules.