Permit control of the flags passed to java through a new variable
Users have requested an easy way to make this change. Ubiquiti
recommends 1024M by default, but the actual memory requirement depends
on the size of your environment. It is safe to run at much lower levels
with only a few APs.
Fix problematic package upgrade
Unifi comes with a WAR file that it unpacks if the webroot does not exist.
This was causing the webroot to be untracked. Upon an upgrade Unifi
would not clean up the old webroot or unpack the new WAR file leaving
the web interface non-functional. This is solved by unpacking the WAR
file before creating the package so we track these files.