ENYO-1336: Hermes nodes are now inserted at the right place in the tree
ENYO-1336: Minor code style enhancement
ENYO-1336: fix the scope of a variable
ENYO-1336: code cleaning
Merge pull request #378 from enyojs/ENYO-1336

ENYO-1336: New Hermes nodes are now inserted at the right place in the file tree

Tested on Linux Chromium 27, Mac safari