Improve error handling on saving assets, and heuristic for
detecting extensions to add to assets
Improve handling of relative paths for assets

Including those that go above the server path root