major refactor - split out RTS stuff into beta directory, and started factoring out kernel and gl routines