Various structural changes

Performance / JIT improvements -
 - Prepacked static headers
 - Ipairs wherever possible
 - Prepacked padding
 - Use of nginx re methods

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>