Memory leak fixes (close db statements and moved to Jetty http server),
Setup file logging,
Fixed daemonizing