Added unit test for deleting RealmObjects across threads.
Root cause unit test added.
Proper iterators implemented for RealmResults.
Added script for packing/deploying new release. Moved all scripts to tools.
Merge branch 'master' into cm-delete-across-threads
Iterating a RealmResult now correctly identifies any changes to the underlying query result.
Artifacts now automatically release to BinTray. Cleanup error messages. Better check for state of repository before executing rest of script.
JNI sync now throws proper exceptions. CamelCased unit tests.
Fixed potential problem with whitespace in dir names.
RealmListQuery test
remove unnecessary space
Fixed cross platform sed issues. Properly detect presence of realm.io dir.
Fixed exceptions being thrown on next/previous iterator methods.
Fixed spelling mistake + missing constructor exception.
Cleaned up RealmResults iterator tests.
Merge branch 'master' into bp-realmList-test
Mitigate the file size growing problem

This change does the following:
 * disables the caching of Realm instances in threads without an event loop
 * makes the Realm class implement Closable
 * does reference counting for closing Realm instances
 * checks if the Realm instance has not been closed before any operation
Only commit if needed during instantiation and re-enable caching
Fix the annotations processor unit test
Add a unit test for reference counting