case insensitive filtering with config and unit testing added

several updates done on my fork and you may like to implement too. kindly see each commit.

***Note:***
For the unit testing, kindly run the test on your local machine as travis-ci build always fails due to composer not successfully completed and still can't figure how to make it work. (I'm newbie on unit testing and travis-ci and this is my first pull request on github. (IMO) >.< )

![screen shot 2014-01-19 at 7 20 32 pm](https://f.cloud.github.com/assets/2687997/1949343/c8d56824-80fb-11e3-92c6-6b67f2b13cb8.png)

Debugger fix and added SQL executed in output for tracing