Added db, GPIO and API unit and functional tests. Added API method
decorator.