Revert "Bugfixes"

This reverts commit 5fd989a2cad0a3998c0032b6cddbb6f36e3acad3.
Revert "Code formatting changes."

This reverts commit db581c5d70a77304cc793f1ca0d5d4296c1edf5a.
Revert "Add missing use statements and view format handling."

This reverts commit a636b64d24ff9048a639cf8e7e2973a8a8008c41.
Revert "Minor improvements and advancements."

This reverts commit 7e6fe2819b9f4bfaf1d2dd908e9b4a1bccf99a6a.
Revert "Preliminary work on new templating subsystem - work in progress"

This reverts commit 5bc091d8f68cf7ca23ce507feb70a373407315e6.