store stack application in database
add callback for addInDatabase
check controller package.json for tests
add update-stack function
reverse stack order in update stack
update controller in update stack function
try 5 times to add data-system in database
improve addDatabase function
check err and body.error in addInDatabase
update stack.json before database
improve patch - remove autostart directory
improve stackApplication in database
keep needsUpdate and lastVersion
doesn't add controller during start
add log for travis test
add new log for travis test
remove useless logs
add restartController function
remove log in /usr/local/var/log/cozy if exists
remove TEST_ENV in travis file