Added URL detection to [option][source]
Removed content header declaration

The removed declaration is incorrect - returned content is text/html -
and it is also breaking inline post editing.
Fixed ajax function

Ajax function was incorrectly responding to Trigger->Ajax and then
returning an error if it did not understand the action. I've broken the
ajax function into two functions that respond only to
Trigger->ajax_[action].