Added logging
Launch as daemon
ssl support