cleanup/organize parse_notes and notes_template

tweak ranking function.

BROKE sandbox/explore/main.py, but nice improvements are coming to it.
source and cached fields can (and will now by default) be org-mode links.

ROOT and CACHE directories will be created if they don't exist.