Rearranged some functions to seperate pstricks and tikz from html, added some utility modules, cleaned up requirements.txt