API

Also changed pothole create to throw exceptions
This will probably break other stuff...