completed some refactoring; working on some lightweight optimisation based on Chrome profiling
fixed bugs in caching; worked on basic look and feel for header bar