resolve jshint warnings

Hi James, I'll be working on using restore for another project and although some of the changes I make wouldn't make sense to backport, I would like to submit other things upstream and hope you're open to that.

This is just a few missing semicolons and undefined vars. I will be updating restore to be compliant with the latest webfinger spec soon.