Pass attr hash to AssetWriter#write

Attributes will overwrite defaults.
Add env-relative Asset#env_path method

Will need this to ensure correct paths for mounted apps.