Add type annotations to swh.core.api
Fixed consistency problems
Optional params are now Optional
Data is now bytes