Adding inline styles so that this html markup will also be decently styled when used in emails. This code is all pretty messy. Will clean it up once stable.