fixing some module require'ing.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Moving web_methods for better segmentation of the file.

This results in easier reading.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Moving more indices into the table assignment for the web object.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Moving htmlify_func inside the htmlify function.

This gets me into thinking of splitting this function into a separate module.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Simple reformatting for simpler reading of an xpcall.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Remove the re.lua dependency

This makes tests/test_routes.lua run ~25% faster (omitting the /:foo.:bar test that failed and continues to do so)

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>
Exctract the htmlify module on its own file.

Signed-off-by: George Petsagourakis <petsagouris@gmail.com>