Refactor TED module to Web.TED.API and Web.TED.Web
Update tests.