Added ability to do stuff after and before serialization
Fixed sending messages to the server.
Merge branch 'AgentServer' of https://github.com/jannickj/nabf into ServerApplication
minor work on communicating with server. not done.