Make it work with Nancy 0.23

In Nancy 0.23 the application registration classes changed.