Yes, in California and many other states this provides a defense to the crime of possession of marijuana. Please remember that many prosecutors and judges are against this law and will work to disqualify your status. It would be a good idea to consult an attorney to ensure your defense is preserved.
Yes, you can do so, providing your recommendation is current, but you should also get representation by a private or public defender to maximize your chances of getting the charges dismissed.
Provide this recommendation to your lawyer. If you don't have one; I recommend hiring one or getting the court to appoint you a public defender, if you qualify. Then let your lawyer fight on your behalf. Good luck to you.
Assuming your recommendation predates the citation and was valid at the time, it should result in the case being dismissed. If you want to be bold, ask for your medicine back as well. It was seized from you, but you have a lawful right to possess it.
You can do this yourself or hire an attorney to represent you, but you cannot get a public defender since this is just an infraction.