Add ability to configure the stop key through env vars, other cleanup.
Add backend build file.