Some preliminary frontend stuff.

Made prev. commit compile.