Handle stale pidfiles, API and frontend apps (#7712)

See https://issues.dp.la/issues/7712
Merge pull request #13 from dpla/7712-improve-api-restart

Handle stale pidfiles, API and frontend apps (#7712)