Upgrade to 4.0.12 and all most warnings taken care of

Aside from the strong parameters and the devise changes, most of it is
fairly straightforward.
Threw away all of the activities code that we no longer use as it will
be part of the scheduling system whenever we need it.