Refactor note authentication into service.
Refactor note authentication service.

I decided to change the structure of the service object to something a
little simpler to understand. I also used this as an opportunity to try
out the new required keyword syntax in Ruby 2.1.