pretty URLs without hashbang, catch-all middleware on server-side to enable refresh