Add some functions

getInstanceFromJson, instanceExists
Add the creation of pm2 instance in pm2 settings.