Added command line parameters, daemon support, authentication, some simple commands.