Sample SmartStore app, code cleanup and bug fixes!

This pull includes,

1) Universal smartstore example application.  Since it is using SmartStore, and thus Sqlite, you will need to build for the exact architecture you plan on testing / deploying to.  The example application demonstrates pulling large amounts of data from the server, storing it locally, and allowing you to retrieve and display offline data quickly.  It also demonstrates how you can clear the data out.

2) Bug fixes.  Biggest were around locks not being cleared in a timely fashion, blocking scenarios where you insert large datasets and then clear them.  There also is a fix around inserting - sometimes json was breaking, which caught a potential sql injection bug that was also closed.