create function validate_ret_url
use ret_url from query in comment edit
use href to calculate comment edit ajax url

This way we do not need to provide all information twice
(ajax + traditional)
Merge pull request #613 from xi/feature-609-comment-edit-redirect

Fix comment edit redirect