Implementing HTML5 appcaching and offline Breeze querying