Revert "Adding ajax handler class"

This reverts commit 78264020feea3f8e1da2f442955aa7ecfaa2a821.
Revert "Revert "Adding ajax handler class""

This reverts commit b9f78c095e1fd2e2827856bc2ca1f5ebf07fd177.