You need to discuss this with a lawyer immediately. You waived your right to removal/deportation proceedings when you entered using the Visa Waiver Program. As soon as you overstayed your 90 days, you gave ICE the authority to summarily detain and deport you.
You can apply for adjustment of status; however your overstay remains an issue and could cause problems at the interview. Don't do this yourself.
I agree with the previous resonse in that you really do need to hire an attorney to get your status legalized. If your paperwork is completed properly by an attorney who has experience in similar situations, you shoul be able to get your permanent residence in the US and a work permit without ever leaving the country. While there is nothing illegal about actually getting married in the US while on the visa waiver program, it is illegal to enter with the intent to remain (which is very strongly evidenced by a marriage to a US citizen.). This issue can definitely cause problems for you at your interview and as you are currently deportable, you need to do this paperwork right the first time. If you are removed from the US you will face a ban of 3-10 years so it is crucial to file everything the right way.