allow specifying bind address, better handle realm.properties
Add rudimentary SSL support