lua : add an events when the current view changes

lua name : "view-changed"
two extra parameters on callback
* old view
* new view