use the applicationCache object's status instead of using our own variable...
add initial infrastructure for online/offline events
add some docs to api.js
doAPIRequest: bark loudly when submitting requests while offline (caller must check!)
doAPIRequest: call the fail handler always when having a network-exception
move off the network-detection code to own file
add modernizr.js library
add offline-supporting session component
network: on first run always run the online/offline events
add menu display JS component