Update war layout to package custom scope dependencies in WEB-INF/lib/

Fixes gh-2187