Increaesed logging in cocoon for submission system debugging

Added a logger for cocoon and a lot of log messages for submission.js