Improved GoStorm protocol buffer encoding. Fixed various minor issues. Refactored some encoding schemes.