Implements hook_page_build()

Uses only this hook rather than hook_init() so that the JS and CSS is
not added in AJAX calls.