Refactoring to SQLitePCL.raw.
Fix compilation error and SQL param token

Fix compilation errors on SQLiteStorageEngine.cs and Cursor.cs
Change SQL param token from '@' to '?' as required by the new SQLite library
Fixed GetUpdateCommand, Cursor, and ForceInsert

- Fix GetUpdateCommand bug
- Fix Cursor that should have one initial step result from the
beginning.
- Remove Async from ForceInsert
- Add notifyResultsOnContextThread param to the Manager’s constructor.
Merge pull request #47 from couchbaselabs/fix-compilation-error

Fix compilation error and SQL param token
fix update and insert checking change bug

The sqlite3_changes should be called to see if there are any changes or not before calling sqlite3_last_insert_rowid.
Fix Update and Delete returning value

StorageEngine.Update and Delete should return the number of rows changed from the operation instead of the last inserted row id.
Fix Delete method compilation error
Renamed start_gateway, fixed shebang sh.
Fixes #51, fixes #52
Fix replication with attachment and make TestPuller passes again

- Fix MultipartReader and MultipartDocumentReader
- Fix Replication.Stop by ensuring that all the async tasks are done
before returning out of the Stop method.
- Fix Puller.InsertRevisions by ensuring that the CompletedChangesCount
is notified before AsyncTaskFinished method is called to prevent an
issue that  the Replication is called to stop in non-continous mode
before CompletedChangesCount is notified.
Remove a try-catch debugging block
[Tests] TestHeaders now passes

- Ported TestHeaders from the Android Unit Tests
- Ported CustomizableMockHttpClinet from Android Unit Tests into MockHttpClientFactory and MockHttpRequestHandler
- ReplicationTest : Moved private methods to be at the same position
- ReplicationTest : Fix ReplicationWatcherThread started flag not getting right value
[Tests] TestAllLeafRevisionsArePushed now passes

- Ported ReplicationTest.TestAllLeafRevisionsArePushed from the Android Unit Tests
- Fix Database.CreatePushReplication : Pusher should get the HttpClientFactory from the Manager by default
Merge pull request #55 from couchbaselabs/replicationtest-testallleafrevisions

Replicationtest - TestAllLeafRevisionsArePushed
Merge pull request #48 from couchbaselabs/sqlite-replacement

Sqlite replacement