Made build script in saner language.
build.ps1: Added packaging step.
server: Don't throw wrapped error outside of request domain.
server: Read port from argv.