Add locals to config

Environment name is useful for output paths etc.
Fix up tag writing

There was a pointless lookup table antipattern thing going on here, now there
isn't. Also now using ERB for tag templates.
Update Sinatra example

No longer autoloading dev assets.
Manifest is written in input directory

So as not to make accidentally public. :)