Command-line arguments for configurability.
Added upstart script to daemonize.
Added logging.