Made js-libs bower directory (and added it to gitignore), tried fixing the problem with flashMessagesToJsonAction coming from server, but need to dig deeper into this one.
Updated some libraries and toyed with flashMessagesToJson(action) need to look deeper into this one.