Cleans up representation.h - second cut

Classes inside amm::representation are const-correct

Inlines all implementation code for representations.cpp
All its methods are small
Cleans up representation.h - third cut

All Transform() methods accept const references instead of const pointer
(Google style guide)