Check the content and the length of certain input data and MySQL database and table names

Fixes issue https://github.com/telefonicaid/fiware-connectors/issues/114
In general, I've replaced all the "*entity*" variables by "*resource*" in all the CKAN files. I think the code can read better this way.