Consistently encode Resources and BNodes as internal ids in indexes.
Fixes to web app ontology tree and search functions (Still needs
more work). With test fixes.
Merge branch 'master' of git.corp.yahoo.com:tep/Glimmer