Ongoing tensor mechanics cleanup

Per issue #3472 this is work in progress to perform code cleanup on the tensor_mechanics module.