Added local caching for Profile repository.

BUG=#40
R=amoser@google.com

Review URL: https://codereview.appspot.com/190390043