[api] Add `stop` lifecycle script

Ref nodejitsu/nodejitsu#340.