Fix MW 1.23 / Uncaught ReferenceError: wgScriptPath is not defined

Instead of wgScriptPath + '/api.php' use mw.util.wikiScript( 'api' )
Fix Undefined variable: egSWLEnableSelfNotify
Merge pull request #11 from SemanticMediaWiki/hotfix

Hotfix