WP8 supoprt and insert bug fix

Fixes bug for iOS with regard to insertId, and added support for WP8