Separate out app-state.

Also add large sample data files to test speed.