[WIP] Remove globals from api loader

**Do not merge this**

This applies https://github.com/geoadmin/ol3/pull/106 as ol3.

It adapts the loader to remove the need to define the GeoAdmin global variables. It removes the ol3-install and ol3-serverconfig targets (they are not needed).

It works in almost all browsers I testet...only **IE9 doesn't work**. IE9 does not execute the document.write statements synchronously, so the loader fails. Did not find a workaround yet...