Added support for multi-processes application server

* Sync processes by using a temp file as lock, so that we can
protect critical session in process level.
* Introduced and implemented deployer attributes which is used to
persist deployment states.
* Refined caching mechanism to make sure out-date caching data is
invalidated.