Standalone et all

A very raw implementation of #84 but it should work...  Probably using a more robust mechanism for `extends`/`clone` would be better.
This hsould probably be moved above line 30