Agent endpoint implementation (except Config which is postponed)
Tests palced into separate folders. Empty file for agent tests added
Fixed bugs introduced with json serialization refactoring