More work on functional simulator

Started moving the basic Swift simulator from command line bits into XCode and building the actual GUI for it.