Added prevalidation endpoints to api. Closes #72.