Fixed sorting in linked lists.
Some installations have old idx_xxx columns in db tables instead of property.  Remove.
Fixed building templates on the fly with fs_skin on JS call.