Fix up deployment and add cookbook