Start code cleanup

Also add a script to get user access credentials when I need access
credentials of a different user than who created the app (like for dev)
First cleanup pass. Ref gh-6. Closes gh-2