Fixed auto-startup, JmDNS and password support

Fixed an error with auto-startup, cleaned up some code, made RPlay self-sufficient with JmDNS (great for Linux!) and added password support. Also added safe shutdown when either console or GUI is force closed.