All calculations moved to server side.
Added state saving/restoring mechanism.
Reorgnaized package structure.