Added View Counter and bug fixes

Working view counter now works alongside view ranking. Fixed bug with
cookie used to rank different pages.