Now my questions.
1. Has he got an legal right to be there when the baby is born, if I want him there or not?
2. Can he get a lawyer onto this?
3. Can he take complete custody of the baby I have been here for and wanted and love the whole time, while he has been so wishy-washy about it?
These are so easy to answer,

No - he has no legal right to be there at the birth;

No - the lawyer would not be interested as he has no right

No - there's no way he would have custody AND the court would take into account all the behaviours you have detailed as well, but I doubt he would be bothered.

Like my Mum said about my ex, there's no way he could actually organise himself to go to court - and I am fairly certain your ex is the same.

The stress and anxiety you will have to ride out and try and focus on Peanut and what you do have, rather than your ex. I would not bother yet with AVO's and such but rather keep a diary and keep in mind that it is something you could do if required.

hth