Changed foreach syntax

Foreach loops now look like this : {foreach(array as variable)}
Big update to template compiler

Totally rewrote the first template compiler and changed the syntax to
provide more transparent access to normal PHP. Compiler is also
extendable with custom patterns and methods. Affected classes include
Assets, View, and the WebController.