Redesigned logging. Created upstart script.