Added a Mail wrapper class
Added callback API on web interface