Tweaks to fix a few small issues.
- Fixes duplicate load of JS/CSS/Templates in certain circumstances #38
- Fixes a css loading issue when 'cache' is not defined (new, found while testing #38)
- Adds more robustness around checking if a module is being defined differently in two locations (may need more testing / review)