Rewritten whole code generator.

The entire code responsible for code generation and expression nodes
generally has been rewritter from scratch.
Few things have not been adapted to the new code, so eg.SSA doesn't work
at all - I will fix it in future commits.