Prevent a client error when receiving messages after reconnect

After a server reconnect, the browser would throw an "undefined is not
a function" error with unclear origin when a new message was received.

Moved message handling subscription logic out of subscription
callback, and added an explicit unsubscribe method to the Faye service.
Only put essential files into the appcache