Merge pull request #28 from bwg/editor-style

Allow `Editor.command()` to take functions as arguments
Use static YUI CDN URLs because Yogi is full of bugs.
TreeView: Don't remove and reappend existing DOM nodes when re-rendering.
Build sm-treeview.
Merge branch 'master' of github.com:smugmug/yui-gallery
editor-dom: added split method, getAncestorElement now takes a function as the second argument
editor-style: No more nested elements, all style nodes are siblings

When styling a range, the range is parsed and instead of creating nested elements, nodes are split and reinserted into the dom as sibling nodes.

This makes it much easier to apply styles and query node styles.
editor-style: update _queryCommandValue to iterate over styleNodes

since all styled nodes are now siblings, _queryCommandValue now iterates over styleNodes to determine style values instead of walking the ancestor tree and trying to figure out the style cascade

moved _getStyledAncestor to editor.dom.getStyledAncestor
editor-style: formatting
range: new expand method

expands a range to include element nodes while still being equivalent to the existing range. effectively opposite of shrink method