Fixed ClassDefNotFoundError when running in a headless server.

Moved the GuiHandler functionality into the Client/CommonProxy classes
so that the LensGrinder & GunBench GUI classes aren't even loaded on the
server.
Finish server-crash-fix. Fixes #31.