Moved some class to api lib.
Updated buildToolsVersion in dependencies.
Added json dependency.