Add default handle_cast/handle_call

Also pass a Module interface through as a second argument to the Server
constructor, rather than injecting functions into the Server prototype.