reorganized foundations files for tests a bit
added script for md5 digest test

needs server, though.