REST API: Return an array of capabilities.

The endpoint can be called passing a single capability or an array of
capabilities.
In the first case, It returns a boolean indicating if the current user
has that capability.
In the second case, an array with the capabilities as keys and
current_user_can( key ) as values.