Added support for new-style (directory-based) couchapps.