Added a class for ajax actions

Added Ajax() class for "unified" handling of ajax actions