apply property expansions to more places

- The name of the main class
- And the realm from which to load it
  (I don't need this myself but why not)
- The default value of the property

Signed-off-by: Kristian Rosenvold <krosenvold@apache.org>