Completes refactoring of AJAX requests

Also includes slight changes to the notes table style
to avoid having the data overflow into the editor and
preserves the title underline when a note is saved.