Add Shared.ts that is shared between client and server
Move type defs to subdirectories

The import paths in the definition files assume a subdirectory structure.
Don't import node.d.ts on client
Add scripts for building/running Lucy server