Refactor boilerplate.

Automatically register keys based on "Verbs".
Merge pull request #1 from Shiandow/master

Refactor boilerplate.