Added headers argument to http.get()
Handle idx > 0
Added http.post() function
Replaced service.log() with service.info/warning()