Refactor chroot and package handling

Other changes include,

* Changed ''' to """
* Added package.py and test_package.py
* Lots of reorganization.