added old refresh logic from produciton version back to embed.php, combined tables and added timing variables as requested by crispin with refresh at 50 secs and last viewed at 5 mins