Move out implementations into their own modules.
Add admin settings to control queue processing at cron time.
Tidy up module, only process if jStats enabled.
Tidy up core statistics override, disabling options and leaving a message explaining why.
Add return statement.
Add jstats_add_javascript function to make the module cleaner.