Update actions.js

Updated paste resource action.
After pasting a cuted resource, this.checkedNodes.nodes is empty and all action buttons are disabled to avoid multiple paste of a cuted resource (this was causing an error)
Update ResourceManager.php

There was error when cutting multiple resources and pasting them in a folder.

Sometimes the next_id of a resource was not updated which causes an exception (unicity constraint). So we used  ```forceFlush``` instead of ```flush```
We also replaced ```removePreviousWherePreviousIs``` and ```removeNextWhereNextIs``` methods with simpler ones, but we don't know if it really do the same... Any way those methods seemed to do the same things multiple times...
Merge pull request #959 from pitrackster/master

cut / paste ressources in ressource manager