Add support to register swift as an endpoint

Change-Id: Ia5ad2b40f347fe05a8ae9194236c511a31cc5077