moved this class to the library so all components can use it.
q request is now being sanitized
Fixed strict standard warning