A Primer on Complex Systems: With Applications to Astrophysical and Laboratory Plasmas