Issue #2467759 by Mile23, andypost, Wim Leers, Berdir, Fabianx, Crell: Refactor drupal_process_attached() so it doesn't depend on drupal_add_http_header()