Cache manifest

Added: Images are being saved in application cache.
Updated: hostname retrieved instead of static localhost in xmlhttp
Bugfix: IMGname error in console, fixed by putting data-ng-src.
Comment: Will keep using xmlhttp request instead of Angular $http, its
native and allows splitting in seperate functions. While $http does an
xmlhttp request in the background.