215 shift report emails

Link to issue: #215 

This pull request fixes issue 215, see my comments there. Again, some other steps might be required to fix this issue in production for the stcdev version of shifts, but this works on my local machine. 

In order to work on this problem, I had to merge in the changes David made on his #235 pull request, '229_report_show'. Without it, I was unable to create a shift. So that is why all his changes appear here. My contribution is only the last commit.