added resource handling
Merge branch 'master' of https://github.com/go-amp/amp