Added ability to build war and OSGi jars (either/or or potentially both).