Implement dist build. Modify existing tasks accordingly (resolves #14)