Added workout api, a few tests on client side and some todos