Total rewrite

Rewritten large parts of the original Behavior Controller and renamed
the library to Conditioner.