Fix flattenDocument() to return values.

As taken from GitHub, flattenDocument() returns a data structure where the values are blank.  See Islandora-Dev message https://groups.google.com/d/topic/islandora-dev/A_ajiI6stnA/discussion for details.
Add check for writing temp files.

If $this->cookieFile = tempnam(sys_get_temp_dir(), 'curlcookie'); fails,
the problem isn't seen until saveCookiesToSession() when
$this->cookieFile is a boolean null instead of a file name.  This
adds a check to createCookieFile() to make sure the cookie file
in the temporary directory can be created.
Merge remote-tracking branch 'origin/1.x' into 1.x

Conflicts:
	FedoraApiSerializer.php
added return value to pergeObject
Merge pull request #45 from lyrasis/1.x

Test for valid temporary file.
Fixed FoxmlDocument not respecting versioning

FoxmlDocument wasn't correcly setting the versioning
flag on datastreams. This was causing any object created
in Tuque using FoxmlDocument to have its datastreams set
to non-versionable.

The fix was a simple error serializing the output of a
boolean to XML. PHP was outputting 1 or 0 for true or
false, while the foxml was expecting true or false. Any
other value was interperated as false.
Merge branch '1.x' of github.com:Islandora/tuque into 1.x
Merge pull request #47 from jonathangreen/1.x

Fixed FoxmlDocument not respecting versioning
Added first try at travis-ci support.
Updated travis config.
Another try at getting travis working.
Updated travis.xml to fix fedora.
Updated travis config for the move to islandoras github repo
Merge pull request #48 from jonathangreen/1.x

1.x
Typo in the travis config.:w
Updated README
Merge pull request #49 from jonathangreen/1.x

Updated README