Minor code cleanup

Moving stuff around, adding const qualifiers, removing include
dependencies
InputChain initial implementation

implementation of fighting-game-styled input chaining classes