Allow setting memory allocation

This allows to set JVM settings such as heap and permgen when calling class jira. It is also possible to add JVM options with the `jvm_options` setting.