Switch to upstart

 * Greatly simplifies daemon script
 * This also automatically adds logging to /var/log/upstart/lwp.log (which can be useful if daemon fails to start)
Refactor into standard python module with a setup.py

* Made lwp a standard python module with a setup.py
* Move templates and static folder into lwp module folder as per python packaging guidelines, version file had to be moved too
* Move lwp.py to bin/lwp and add to scripts section in the setup.py (this will become /usr/bin/lwp when installed)
* use dh_python rather than debian/install file so lwp gets installed as a standard python module, the proper debian way.
* Move database to /var/lwp/lwp.db
* Update lwp.example.conf with new database location
* Update the upstart script to execute /usr/bin/lwp
* Add a MANIFEST.in for including extra data files (templates folder, static folder, version file, etc.)
* Update .gitignore with python packaging temporary files

Suggestions after this commit:

* Blow away tools folder, this install script does some pretty bad habbit stuff like "sudo pip installs", the script is also likely to be broken after the refactor.
Fix bug after refactor, version file not found on about page
Function names don't normally use camel case in Python code style
pep8 says to use double quotes for docstrings, not single
Make all print statements python 3 style, though most really should be logger statements
Optimise function, fix excessive calling to split() function

Also initialise values with 0 to avoid potential crash, it's not likely this will happen but it makes the logic a bit more sound and makes static code analysers happy.
Use with statement when opening files
Move exceptions to it's own .py file to start cleaning up code a bit

Also CalledProcessError was redefined, when you follow the code, check_call will raise subprocess.CalledProcessError (an exception with the exact same name) so I changed it to catch that instead.
Fix lots of blind exception handling

Also found one instance of redundant brackets
Fix a few python3 divisions
Take out unused variable
pep8