start and stop login polling
remove register nav
add base.js to contain basic functions
use apiary as mock server