move setting of vertx & container into a more sensible place