AngularJs directive to perform custom queries on an array of objects.