help command now is checked for before most anything else is ran.
Made linux build script executable
General Refactoring.

Changed package_list.writeToFile to take a filename instead of open handle.
Moved packages list update logic to seperate file.
Changed install/remove/list subs to functions to fix errors relating to locked db.
Added string replace helper function.