Add Ubuntu webapps integration JavaScript, and a ready() method on the Discourse app object which fires an event so that integration scripts can use it.

Signed-off-by: Marco Ceppi <marco@ceppi.net>