fixed publication with scripts loaded in silex script
more automatic tests for publication
fixed one of the errors with phantomjs auto tests