Changed two strange looking places in boot.php.

There have been two places that looked wrong, but I don't know how I can test
them. So please review and test if I am not wrong.
Removed some unused variables from App class.