Rewrite user and project profile headers from HAML into HTML and simplify code #wip