#68, #69 and #61

This PR implements #68 and #69 (/tos and /tos/:id) and adds "limit" in optional parameters for #61.