This fixes a bug in how the vault api was checking remaining balances were greater than zero, resulting in an underflow condition (making the balance really huge).
Also added a config value for max xp. The default setting of 0 means it will be ignored.