Generalize tagging schema to re-use tagging code for todos and notes

Add generic tagObject, untagObject, etc. functions for tagging objects
of any type.

Make old note and todo specific tagging functions just wrappers
calling into the generic object tagging methods.

Cleanup hlint warnings
Clean up todo/note REST handlers