support apps in subfolders

handle if an single page app is installed into a subfolder and has urls like e.g. http://example.com/app/#!/page
on linux require statements are case sensitive

on linux require('./Cache') is looking for a file named "Cache.js", "cache.js" will not match..
Merge pull request #1 from amitevski/master

support apps in subfolders