Cleanup the code.
Merge pull request #6322 from edx/anton/edxnotes-cleanup

Student Notes: cleanups.
TNL-931: Add eventing for Student Notes.
Address comments.