escape sql string #495

To avoid sql injection
 #495 - improve BuildFilter to avoid sql injection

* improved compatibility with cakephp conditions array
* add unit test
add to BuildFilter sql injection unit test #495
sanitize session filter when read values #495

also improve unit test
remove to filter old way to do > or < cond #495

to avoid sql injection remove obsolete way to do greater/lesser than condition
improve sql conditions in FrontendController #495
Merge branch 'issue/495-vulnerability' into 3-corylus