Refactored to allow deploy of multiple modules and artifacts in one request.