Development of Flight Rules and Distributed Traffic Management for Autonomous UAVs