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.