use configured url's instead of hardcoded ones
properly fix openlayers loading panels bug. Make sure Openlayers is loaded before we try to use it.