Issue #381 clickable autocomplete

Made autocomplete to work with mouse.
I know the issue was created just a few hours ago. And was not yet approved by p-e-w. But I decided to implement it anyway. 
I also agree with @arkocal's proposal: Single click should copy the command into the prompt, double click should run it, and right/middle/etc. clicks should do nothing.