Updated Resource routes for demo application.
Added Scope documents to ml-security.xml
Added API route to config.xml

base.index.html.xqy - Updated to ensure boolean output
config.xqy - Added function get-applications()
domain.xqy - Fixed issue in documentation ~
Added xsl templates to processing instructions
Fixed scope interpreter in interceptor.xqy

UI
Updated all resources to use new file directory conventions
Updated XQDocs to latest version.
Updated helpers to use new naming conventions for helpers
javascript-helper.xqy
form-helper.xqy
json-helper.xqy
Check in all javascript resources to use new naming conventions