Added the basic api functionality.
Also added mass-update scripts. Cleaned folder structure.