Add release script, closes #267