Minor fixes on mapstore templates

* Fixed bug when mainIFrame is not found
* Allow `opensdi2ManagerUrl` configuration for manager.