Fix #288 Manager.ReplaceDatabase Error

* Close destination steam after copying the database

* Fix CopyStreamToFile offset error

* Add Manager.ReplaceDatabase tests and related asset files
Merge pull request #289 from couchbaselabs/issue-288

Fix #288 Manager.ReplaceDatabase Error