Updated functional spec

Added php sources and test interface page
TODO: add .htaccess file and DBs