server: Add base for protocol implementation

Add the proto module which has a query method, which calls the corresponding
protocol method.

Only two protocol methods have been created, the others have to be done.
They also depend on the upcoming database module.

Also add bitsyntax and hashmap modules as dependencies.