Rename /rest/notes to /rest/note and /rest/weights to /rest/weight

Use only a single path to notes and weights.

Fixes #7