Moved stuff over to translate.go. Implemented globals and do proper package initialization.