KEYCLOAK-331 Fixed NPE when user specifies EAR name instead of WAR in subsystem.

Also, fixed EAR deployment in general and added EAR example.