Moved some code to mytardis-rest.