Add release script, closes #266