#1034838 by catch, David_Rothstein: use #attached attributes for adding JS and CSS where possible instead of drupal_add_*