Initializing fixes.

Fixes an error when you deploy the admin gui in the same web container that geostore, and the geostore instance it's not already available (on web container restart).
Merge pull request #26 from alediator/initilizing_fixes

Initializing fixes.