Fixed REST API.
Added Upstart script.