Set ignoreAcceptHeader of crafter.mainViewResolver back to true, since it was causing that views not found by the CrafterPageViewResolver to resolve to XML.
Fixed small script related bugs.