Update middleware generator

Updates:

 * set `spec` property
 * use `git config --get user.name` instead of `Etc.getlogin` to get user's
   full name
Merge pull request #37 from potomak/update-middleware-generator

Update middleware generator