First round of refactoring the original prototype

Static server replaced with java servlet, client logic separated from
graphics engine.