Fixed memory leak due to ghost activities not being destructed.
Screwed up a commit... yeap. Anyways, added button event handlers for
the main activity.
Merge remote-tracking branch 'origin/master'

Signed-off-by: Stanley <stan.n.to@gmail.com>