Moved Cue class to Stage file. Added Stage::stackdump. Also: LOL WUT - function lua_pop pops n off the end of the stack, not element n. Took me ages to realise that...