Moved middleware out of Attendance app and into the sinfoniapd project