[master 16:20 2013/9/14]

- Added RegisterDestory function to MainActivity, tha allows user to
  define custom OnDestory function when app window is closed