This is a lot of stuff, but here goes:
To set up a turret you need a turret docking station, a ship with nothing underneath the core, and two faction modules. One module to claim the station or planet you want to place the turret on, and the other on the ship that will become the turret. Once...