php class for dynamically generating html. Inspired by david Walsh's html_element