[NX-516] basic embedded server setup with lifecycle