Add timer and state handler.

Also make sure dirty google modules are ignored, so we can run python
form them.