Actually Bitbucket Server (née Stash) already supports squashing and a variety of other pull request merge strategies. They're just configured[0] per repository, project or globally rather than an explicit option at merge time.
[0]: https://confluence.atlassian.com/bitbucketserver/bitbucket-s...