Migrate to Swift4. Until iOS11 is officially released keep it in a swift4 branch. Once released, merge it to master