General clean up build of the footer

Before moving to the next step (add the controller into the directive),
everything has been cleaned up and getting ready.