Converted all packages to modules as most of them simply had an __init__ and a __main__.

common.constants and common.functions are now simply constants and functions.