added middleware support using midst, and auth test and example.