added serve() method to pass requests to handlers
added registerHandler() to add new httpIO handlers