Irc 6.x 727 enable phpfilter on email conf

Cleaned up token replacement, corrected the following bugs:
* text template ignored
* Raw text message content overwriting token-replaced template values
* html and body tags wrapping text portion of multipart email
* php not evaluating on text message contents regardless of input type selected