Reorganizing for ajax refresh

@scottferg reverse the order /refresh is serving results.  Right now it's newest first, change it to oldest first.  Then merge this code, see what happens.