Add basic home view

Also converting a number of 8-space tabs to actual spaces for consistency.
Fix indentation and follow formatting conventions