improvement on addBulkAction function.

It takes into consideration  the $config values passed as function parameters.
Merge pull request #59 from daniquilez/master

improvement on addBulkAction function.