Implement tests, completing manifest spec.

Asset copying and client-side compilation still WIP.

For #141.