refactor(assets): resolve paths in asset scripts from constants
Both scripts addressed the upload directory relative to the current working
directory. Once assets and upload move into public/ together, those relative
paths would keep working while ../../../vendor/autoload.php would resolve to
public/vendor and fail.
thumbinal.php did not load the autoloader at all, so it had no constants to
work with.
preview.php accepts the path with or without a leading slash, since one caller
passes each form, and now refuses to serve anything resolving outside of the
document root.