You might want to look into capsule jars (http://capsule.io, https://github.com/puniverse/capsule)...