mostly coffeescript changes including sortable photos and inline docs