extracted abspath utility function from text store for reusability

this functionality should be available to (and used by) anything
operating on files within the current instance

the immediate use case is serving static files from a directory within
the instance (i.e. adjacent to `tiddlywebconfig.py`)