Add option to sort notes by notebook, fix sync bug

I have quite a few notes, which makes the note list in the everpad indicator a bit too long for my liking.  It's easier for me to have the notes placed in sub-menus organized by parent notebook.  Originally I just hacked this in for myself, but I figured some other people might like it this way as well, so I made it a real option.

Also, I fixed a bug where once you de-authorized, syncing wouldn't work when you re-authorized.  The only way to sync again was to restart the daemon.