Made Exception Enum class and Factory Class to Manage Exceptions
Changed Cors Filter Logic to add Access-Control-Allow-Origin in every Requests
Changed Controller to Accept JSON data