Cleaned up and started properly using packages

Utils and Tracker packages created, better error handling and a built-in
dev mode now available (although it doesn't do much at the moment).
Files should now be correctly persistent