Bug 884752: configure keyboard layouts and dictionaries at build time

fix test to match

move build-time customization to webapp-manifests.js

refactor keyboard layout build system

address review comments