Improvements

Added constants in place of magic numbers.
Increased readability of a few files.
Renamed $storage in AppController to $sessionStorage.