Added support for ajax complete

This allows the consuming page to add a complete listener (eg: hide an ajax spinner)