Refactor checkins controller and related js

![sheet](http://stream1.gifsoup.com/view/637843/scott-pilgrim-003-o.gif)