Reworked input stack.
Possibly rework input system again.  This may be too complicated and too much stuff may be being shoved into it.
Fix stack masking system in state.h Currently commented out due to being broken.