Moved directory management to ImageServer. Moved configuration strings such as REST service address to app.config.