Update httpdispatcher.js

Added put and delete listeners