register() now takes an optional app argument.
Code cleanup.