Only write xmodule asset files that have changed

@chrisndodge: This should reduce the amount of CPU thrashing that you're having.

Depends on #185 and #173