Convert ngx.re.match to Lua match for easier testing in Lua

See #3
Add tests

Closes #3
Update fabfile with new directory structure