Making it all work. Need to make it more ajaxy but that can wait :).

Signed-off-by: Vishal Sood <vishalsood@gmail.com>