Break the dep from util -> api

Part 1 in a series of changes towards data validation.
Merge pull request #308 from thockin/valid2

Break the dep from util -> api