Added online/offline detection.
Added cache manifest.

closes #40