Small fix for cowboy 0.9.0
Fix to changed cowboy_req:peer() return type {Addr, Port}
Small fix for cowboy 0.9.0:
 - peer_addr/1 -> peer/1
 - peer/1 return type (now {Addr, Port})
rebased two commits into one
Merge pull request #16 from sedinin/master

Changes for cowboy 0.9.0