Assorted changes that dramatically improve performance on Android.

- Drop the unused task system.
- Smarter choice of clock.
- Remove several redundant sleep calls in favor of waiting on vsync.