Improve FileActions JS to allow for custom rendering

This improves the OCA.Files.FileActions class to support passing a
"render" function in the action object.

The default function "_defaultRenderFunction" is used by default and
renders actions in the usual actions container.

Moved "Rename" and "Delete" to custom render functions.

Note: this change will be needed when adding the "Favorite" action (mostly to avoid additional ugly hard-codings...)

Please review @MorrisJobke @icewind1991 @schiesbn @th3fallen 
See https://github.com/owncloud/core/pull/12394/files#diff-6cfa15099b7891cdc06cd1108f80438fR309