Refactored home.view and controller

Used the initial design to have everything in HTML as much as possible.
Also, refactored home.controller to simplify the SQL lookup and handle
categories with 0 courses instead of view.