Makes the thing build.

Removed all trace of const correctness, added utility functions at the top of the header.
Renamed the TODO marked methods and their references.
Merge pull request #129 from fuyukaidesu/master

Makes the thing build.