Added methods to process selected nodes using a Ruby block

  * New methods node and nodes that execute a block on a selection
  * Changed xml template to use lambda syntax to get rid of indirect block calls through commands
  * Updated documentation and tests