sloppy initial prototype

Early proto-prototype of thinkocracy front and back ends in php and js.