added App::path(), path:// and rewrote layout.php to accept paths