Changed PHP to use RedBeanPHP ORM and added register layout + php-file