Issue #2113015 by Wim Leers, amateescu: Add drupal_merge_attached() function, to merge #attached assets.