Implement restart
Now we can use destroy to restart the app
var restart = function() {
// Close current stack
Alloy.Globals.windowStack.destroy(Alloy.Globals.drawer, function() {
// open drawer window from window stack
Alloy.createController('index').getView();
});
};