Core: Fix Smarty errors in M2M foreachs
Core: Switch jQuery request to use CDN by default and fallback to local automatically when unavailable. Resolves Issue #7