Allow using GET with sql-api for queries shorter than configured len

Introduces new sqlapi.max_get_sql_length directive, defaults to 2048.
Closes #155
Includes testcases.