Using generics with collections when possible

This is a simple commit that uses Java 5 generics in collections. At first time I only work in slf4j-api to check if you want this change. If so, I can change all other sub projects.

Using generics allow us to know about elements in collections.

Since this is my first commit in this project, please, tell me know if I don't follow development guidelines.

Thank you.