History API fixes. Rivets.js for view templating/data binding.