Misc refactor/normalization of path logic

Lots of fixes and better handling. Expanded subfile meta cache for even
better performance (content_type and file object now cached). This does
come at the expense of longer rebuild time

Handling for correct identification of relative path to app home dir.
No longer cares what directory it is ran from.

Still in progress, needs tests and documentation of new attrs/methods