Feature/action queue redux

This isn't quite action queue yet but it's now quite similar in some respects, and I have shaken up the queue and planner logic a lot.

It seems to be an improvement over the previous logic at this point, although hasn't had a huge amount of testing. The testing that has happened so far is quite promising.