Code Refactoring and Cleanup

1: Removed unused code
2: Passed explicit variable to array_shift() rather than return value
of array_keys
3: Added function _webform_ext_get_subject($res) to conditionally
return email subject line