Basic functionality in apiwrapper.php implemented. Defined a lot of constants.