added remaining REST functions for runs; fixed some validation bugs