Add Standards API base function

Basic API for uploading STIX documents.   API returns with an error condition, but the documents are created
On 7/31/14, 12:44 PM, Mike Goffin wrote:
>
> In crits/events/event.py:
>
> > @@ -122,7 +122,10 @@ def from_stix(cls, stix_package, source):
> >              if isinstance(stix_header, STIXHeader):
> >                  if stix_header.title:
> >                      event.title = stix_header.title
> > -                if stix_header.package_intents:
> > +                #if stix_header.package_intents:
> > +                # package_intents are optional in the STIX Spec.. So we check for the attribute being present
> > +                # rather than the original check which causes an exception
> > +                if hasattr(stix_header,'package_intents'):
>
> If this is going to be included in this PR, then you need to provide
> an else with a default value which is one of the ones from the list of
> available Event Types. My suggestion would be "Collective Threat
> Intelligence". We /have/ to have an event type, it is required.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/crits/crits/pull/167/files#r15653700>.
>
I did not do this because event.event_type is already set to "Collective
Threat Intelligence" on line 112