Jsincludes

moved js code into its own files in resources folder

supported views using common js includes through rquires .  these views can be run locally to test/profile/debug using js or rhino on commandline.   

added sample js files for test cases, map using requires, and the lib file to included through requires.  this gives a running starter example to the user.