Some restructuring

Restructuring the library to separate out functions from data and actor
elements. Changes made to Phenome and Decoder to make them more like
the other actors.

Please note that this library is incomplete as of this sync. There are
still missing pieces and what is here could change substantially.