move the static page theme functions alongside upgrade code

The upgrade code still needs to be rewritten, but that's a task
for another day.
remove non working demo theme

it may or may not be resurrected