move note validation to backend, fix destroy note, and refactored

note validation is now fully handled by clojure, returning errors
that are displayed by the front-end. spaces dealing the notes were
also refactored to be a bit more concise. permenant deletion of
notes has been fixed