added methods to server.java

init, waitforconneciton, close, registeroberver, unregisterobserver,
notifyobservers