Re-use code in travis and github utils for command line script.
Minor import cleanup.
Add copyright notices.
Add .env and *.db to gitignore.