Add endpoints to set user notification preference

@ormsbee @jimabramson 

I had created #338 with gprice/user-pref-service as the base, and I apparently have to create a new one with master as the base. This now includes all changes requested from the prior PR.