Migrate to Swift3. Until iOS10 is officially released keep it in a swift3 branch. Once released, merge it to master