docsapp loading patterns fix

DocsApp fix for loading patterns. Now it loads pattern as 'text!' using url
and pattern via requirejs name registered in requirejs paths.