Split MainActivity

into LoginActivity and MainActivity. As well, refactor fragments.