StateMachine editor fix currentState

*Fix statemachine creation issue
Merge branch 'master' of github.com:Heigvd/Wegas

# By Francois-Xavier Aeberhard (3) and Yannick Lagger (1)
# Via Yannick Lagger (2) and Francois-Xavier Aeberhard (1)
* 'master' of github.com:Heigvd/Wegas:
  Fix #412 Not editable occupation send email
  Fix  #407 resizable layout  bug after resize
  Fix wega-form.js validation message
  Fix issue in url link handling in html edition