Refactoring/Documenting the CCSlider

This is a minor improvements of the CCSlider. I factorize the input codes (mouses/touches) to improvement the maintainability of the code and I documented its API.