moves API, storage and error handling classes to more appropriate subdirectories to better manage code.