Adds nanosleep and pthread
Adds clock support to the RESTFul api