Add level selector, move to flat file format for levels (.pbx), refactor debugging code to not be entangled with core code