bug fix for rel=instances response
Merge pull request #28 from ilovenwd/master

bug fix for rel=instances response and middleware order