initial commit of code
Migrated from https://code.google.com/p/keysocket-server/