Your first statement is not quite true. A $\mathrm{PGL}_2$-torsor does indeed give an element of order $2$ in the Brauer group, but there can be elements of order $2$ in the Brauer group of a general field $K$ that are not represented by quaternion algebras, so do not come from $\mathrm{PGL}_2$-torsors. What is true is that the image generates the $2$-torsion in the Brauer group: this follows from the Merkurjev-Suslin theorem. Part of the reason this is confusing is that $\mathrm{H}^1(K,\mathrm{PGL}_n)$ is not a group, since $\mathrm{PGL}_n$ is not commutative. Look up the period-index problem for more details.
That said, there is indeed a natural map $\mathrm{H}^1(K,\mathrm{PGL}_n) \to \mathrm{Br}(K)$ for arbitrary $n$: it comes from the exact sequence in (non-Abelian) cohomology coming from the short exact sequence
$0 \to \mathbb{G}_m \to \mathrm{GL}_n \to \mathrm{PGL}_n \to 0$
of algebraic groups over $K$, together with the identification $\mathrm{Br}(K) = \mathrm{H}^2(K,\mathbb{G}_m)$. To see that the image lands in the $n$-torsion, compare this with the corresponding sequence for $\mathrm{SL}_n$ and use the Kummer sequence.
There are lots of references for this kind of stuff; an excellent one is Central simple algebras and Galois cohomology by Gille and Szamuely.