added embedded server implementation, based on gio