Handle resources other than JavaScript

Work in progress. Don't merge yet.

This doesn't quite close #77 because I didn't implement the `live` parameter that I describe in the doc.
It also doesn't fix #76 or #60 because there is no example CSS handler or any documentation.

I think this is the meat of the implementation though, so please sanity check the work so far.