[server][RestResourceAction] Extract common code for PUT/POST
[server][RestResourceAction] Use extracted method in handlePost
[server][RestResourceAction] Use extracted method in handlePut
[server][RestResourceAction] Fix style
[server][RestResourceAction] more extract common code

`action type` parsing code are also common.
[server][RestResourceAction] Remove needless newline
[server][RestResourceAction] Use StringUtils to stringify
[server][RestResourceAction] fold a long line
[server][RestResourceAction] Reduce argument for parseActionParser
[server][RestResourceAction] Remove depulicated replyError

Deplicated replyError code generates strange json.
[RestResourceAction] Fix indent
Merge pull request #875 from project-hatohol/extract-common-code-restaction

[server][RestResourceAction] Extract common code for RestResourceAction PUT/POST