Fixed liveReload support.
Fixed a few bugs, and added caching.