added mongoose login with passport local. cleaned up and restructured app.