add a stats script

this will display generic and site specific stats.
todo: convert to html view, make configurable
add todos