Actions

Mainly for review.
I started looking at simplify even more the actions array, but when I found the search controller I had a moment of... :sailboat: 

So I started to extract some meaningful pieces of code into their own methods.
For the moment it's just two: weight factors (I also added a fallback for non-admins in case of errors in the factors) and the spellcheck.

What do you think? Worth?