Moved Extend to trait, new extend like backbone

Also added register, test passed, browser passed doc updated