[WIP] move endpoints into application as vendor

moving endpoints from dependency into the application as vendor code. fixes #57. work in progress do not merge.