Particle Acceleration And Nonthermal Emission In Relativistic Astrophysical Shocks