Implemented TypeScript def for 'plugins/http'

-Fixed up some comments.
-Better scoping of some of the TS related interfaces.