added filtering by apiversion

use case $swagger->getResourceList(array('apiVersion'=>'3');
=> this should return only resource for api version 3