Rewrite to use Apigee
Merge pull request #2 from TVSD/alex-maltsev/rewrite

Rewrite to use Apigee