Clean up badge code, enable option for redirecting.

Needs some style cleanup.
Clean up badge view
Clean up styling for badges