Refactored code as per StormAgent framework. Only POST /server implemented