Rewrote caching script in bash so it can run without node.
Added shim for velocity.
Better handling of missing XRs for national subsidies.