Listview performance improvements

addFirstLastClasses: .not( ".ui-screen-hidden" ) -> custom function
    
http://jsperf.com/dot-not-vs-loop
    
Fixes gh-7227

Listview: Do not compute .first() if there is only one anchor