Added Identifier to the FromJSON typeclass.
Refactored action into a module.
Parse action from request body.