Moved JavaScript content to the bottom of index.html  On more-complex apps this ameliorates a timing issue on iPads, causing deviceready not to fire
Added is_ios() and is_android() and has_network() functions, which are used by the cache.js system and also are just generally useful