Added basepath
JSON encoder works
Field names also sent with rows
Escaped get parameters now used in mysql query
Authentication almost done