Splitting out crud-building functions into hapi-plugin.

Initial try.
jira: QUES-37