Swap out horrible string concatenation in favour of table.insert & table.concat
Catch syntax errors in app files better
Styling to be consistent independant of app
Breaking changes: limit/offset/etc are now an options table
Make debug data available when APIing
Style fixes for debug
Tidy up locals
Trim functions default to trim space, add optional chars for trim()