added example api; validate it as part of build
bin/patchboard exits with 1 when validation fails
client tests use main example api
server tests now use example api
fixed bug in example api