events now bound to document when needed (in registerEvents)
enable command chaining
trigger theme() after DOM appending
Merge branch 'master' into ui