Fixed build warnings + Realm cache lookup.
Merge branch 'master' into cm-build-warnings

Conflicts:
	realm/src/main/java/io/realm/Realm.java
Moved bug fix to another PR.
Removed distinct() method. It is not supported yet.
Merge pull request #571 from realm/cm-build-warnings

Remove Build warnings