fix an apparent oversight that prevented custom ddocs from reindexing

previously this was triggering _design/myapp rebuild instead of _design/myapp-tmp rebuild
Merge pull request #190 from dimagi/rebuild-tmp-index

fix an apparent oversight that prevented custom ddocs from reindexing
move sync_prepare_couchdb_multi into corehq