Improve appcache tests

+ Verify manifest content-type
+ Verify all lines validity with regular expressions
Fix clientHash call in appcache.

Appcache was broken because it output the *function* WebApp.clientHash instead of its return value.