the internal keys get an __internal prefix; style corrections; templates
use a correct context in odd edge cases; order of params to
palantir.success changed for not particular reason; using jquery helper
function in deep_copy