Extracting core classes into core module.

This change will allow different server implementations to be developed.
Renaming server module to server-netty.