Update test fixture.
Implement the deviceCallback method and hooks.

Currently, only checks the max_device permission, but also allows
calling a custom hook for further checking.

Also, document the existing activesync hooks.