Changes to upgrade system

Small changes to the way upgrade system works so it dont get auto called on initial install, need to add in a check for the acp so this can only be accessed by admin and only should run when called.