Added ifthen and dictionary functions

with these functions we will hopefully be able to not add special
parsing to the template, it may just have to add a line or 2 to the
latex file.
Removed all the dictionary stuff

LaTeX isn't the right tool to do all the generation, so we'll generate
all the code with the C# project, and just use this as a generic
template