Fixed layered library and enabled it in sample app

fixed deps to use the non layered version if files are missing from layer
fixed deps so no special isLayer handling is required by the servlet
moved to layered dojo from official sources