Start of cleanup / porting to standard idioms. Added unit tests and operational playground (Atom/Element so far)