Merge pull request #276 from fragmer/master

Refactoring, commenting, and cleanup in netcode.
Moved selection box rendering code out of onFrame and into drawSelectionCuboid(). Optimized drawing lots of SelectionCuboids at once by removing redundant OpenGL state changes.