Added most of flow control.
Fixed issue setting a control flow variable.
Added functions that allow server capabilities. Not entirely complete.