Added event cb to select/deselect on bar click

When clicking on a bar it can be selected/deselected the same way as in
the treeview in the gtk interface.
Updated to generate events in the browser object

Instead of using a queue to deal with communication between webkit and
gtk, this change creates a new event message-received for the Browser
object so that gtk itself takes care of delivering the message to the
application object.