Basic "gon" functionality

Allows javascript to access variables referenced from the view, like
rails "gon"

Pending: how to pass parameters from the controller into javascript.