Feature/renderer middleware

Added Renderer middleware and a View class, as well as minor fixes to codebase.