Bug Fixes and Learning Mode feature

Fixed some Rule File parsing bugs.

Introduced Learning mode feature.
Lua Programmable Rules

Better performance and more control over the request filtering.