Refactored routing function
Adding fallback mechansim so modules can share javascript, css, images