Various Refactorings and LocalStorage Caching

Caching GitHub objects in localStorage and various refactorings.