Active Janus and Huygens Sources: Achieving Near-field and Far-field Directionality Control