Dual use architecture for innovative lidar and free space optical communications