Introduce Renderer trait, Engine implements it.

Pull out custom code into trait method implementation.  Also change
engine.animating from c_int into bool.
Move android log glue function into main.c, delete android_log_glue.c.
Assert that malloc returned a non-null pointer.