Make bugStates a global variable.

Instead of just regenerating it all the time.
Added inbox state.
Bugs are automatically inbox->new when descr or owner changes.