Merge pull request #368 from adamretter/develop

Test improvements and modernisation
[refactor] Moved package org.exist.dom -> org.exist.dom.persistent
[refactor] Moved package org.exist.memtree -> org.exist.dom.memtree
[bugfix] First pass at extracting interfaces for Stored Nodes
Remove dead code
This was previously marked as @deprecated by Dmitriy, however no
alternative was ever forthcoming and so it is not deprecated (I have
discussed this with Dmitriy)
[refactor] Moved org.exist.dom.persistent.QName -> org.exist.dom.QName
Cleanup of QName internal code and renamed getLocalName() ->
getLocalPart()
[clean] Reuse constants from Java standard library where available
Initial pass at making QName immutable
Fix bug with QName.setNameType which was introduced during QName
refactoring
Make the use of Wildcard names explicit. Should ideally be refactored
into NameTest
Refactored QNamePool to use immutable QNames correctly
[refactor] Use XMLConstants
[refactor] modernise test
[bugfix] Fix NPE in QNamePool equality logic
Avoide NPE when converting from Node to SAX event
Further simplification of QName