refactor jvm-related liberty rspec tests

Move common setup code of the jvm options related liberty tests into a common method.  The method will setup the application directory, allow for tests to customize the context as needed, invoke Liberty's release stage, and then return the contents of the jvm configuration file that each test can validate against.  There are no behavioral modifications beyond refactoring.