refactored project into four modules:

 Common
 Client
 Server Library
 Server Webapp

addresses #367