Added Fatal() errors. Factored out server/main/. Updated server APIs.
Merge branch 'master' of https://github.com/couchbaselabs/query