Initial commit of in-use code (with some config file redacting for usernames and passwords and such).