Getting realm instance in background thread.
Merge remote-tracking branch 'origin/master'