Upgraded Magento to 1.7.0.2 (latest stable) and added action hooks to properly setup the app on deploy