Beltrami fields in plasmas: High-confinement mode boundary layers and high beta equilibria