Added tests around if statement + allow code tag to not have space, for example

   <%if true {%>

is now valid
added support for elseif and else. elseif currently doesn't support assignments the way if do