Added BaseApi structure
Added tests and SendTaskApi now uses BaseApi