Use username instead of hardcoded string.
Make yara distributed.
Merge branch 'master' into distributed_services
Improve service_cli.

The -m argument has been changed to -i (identifier). This can be used to get
an object by it's unique ID (md5 for Sample, domain for Domain, etc).

Cleanup the filter option to not be Sample specific. Add a -T option (default
to Sample) which can be used in conjunction with a filter to specify the kind
of object the filter should be applied to.

Make service_cli get the list of objects and pass those into run_service().
Now that contexts are no longer a thing we can avoid another database lookup
that used to happen when creating the context.
Make yara work on objects, not contexts.

Chase the context removal change and work only on objects now.

Only compile rules when they will be used, which is the non-distributed case.
Rule compilation can be a relatively time-consuming operation and there is no
need to do it in the distributed case.
Merge branch 'master' into distributed_services
Fix importing.

When loading services from a django shell it would just silently exit. This
was because the ChopShop service plays around with sys.stdout and sys.stdin,
so as soon it was imported the shell lost stdin. For now, only do that when
the service is instantiated.
Make OPSWAT work on objects.
Rename context to obj in ANB.

This service doesn't actually do anything via the normal framework, but might
as well rename it to be consistent.
Update carver service to not use context.
Make chopshop not use contexts.
Make data_miner work on objects.
Make entropycalc service work on objects.
Make macho work with objects.
Make metachecker work on objects.
Make metacap work with objects.
Make officemeta work on objects.
Make passive total work on objects.
Make pdfinfo work on objects.
Make peinfo work on objects.