WP8 support and insert bug fix

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