Vendoring pat
Work on api
Unify daemon with api service