Material design rewrite

Worth keeping on a branch for the time being.