Added selector negation handling and support to change URI in the tree

BUG=

Review URL: https://chromiumcodereview.appspot.com//12455005