Implemented ServerFactory so now it can be hosted by Katana. Version 0.5.
Fixes #1