Write a main() function worth of 0.3.0

Changes:
- Changed whole workflow to reflect current vision of the program flow.
- Left only function calls in main
- Depreciated old login code.