Updated application controller to utilize d2g layout and generate error e-mail messages.