Server rewrite.

Still missing some stuff. The dev server seem to work.
Some fixes here and there.

Production mode works. I think
Updated requirements.txt
Updated stackato with uglify