Refactored ajax client using OOP and added more flexible interaction with class (similar to jQuery), added some rest services and js support to get data from them