added first unittest for scrapyd-api and started implementing the api