Get Tests working for Windows

Hunting down the binary flags and did a small workaround for junk file names in tests.  Tests now pass in Windows 2008.  Also tested edits in Ubuntu.

Commit 56b23a8 should not be included in this pull.  The change was merged https://github.com/GeoNode/geonode/commit/ad4f13eb88c5a3064a959c043d64b8c7f4673069 but renamed.  I'll pull a fresh master in the future.