BUG: Campanion Matrix was scalar, not matrix for degree 1.

The companion matrices returned by the various polynomial types was
a scalar in the degree one case instead of a 2-D array. Fix that and
add a test to check for that result.

Closes #3459.
ENH: improve performance of byte_bounds for continous arrays

reduces the memmap slicing performance issue in gh-3364 to only about a
4 times slowdown compared to 10 times.
BUG: fix non-swapping strided copies in GetStridedCopySwap

Fixed PyArray_GetStridedCopySwap{Pair,}Fn returns paths that do not swap
the data.
It never triggered because the alignment requirement for complex data
was too low (4-8 bytes) and always fullfiled by the memory allocator.
As this is now fixed it caused failures on sparc with 16 byte long
doubles.
BUG: fix small leak in datetime metadata initialization
BUG: set filename to None for memmaps of unnamed files

Closes gh-3302
BUG: fix undefined function and add integer divisions in numarray
BUG: fix a spelling error in mtrand.beta docstring
BUG: add platform specific python include directories to search paths

the generic and platform specific path diverge in python3.3 in ubuntu 13.04
BUG: hardcode some known shared library extensions

the configuration variables are not a reliable mean to get the shared
library extension. darwin, windows and debug linux are wrong in these
variables.
SHLIB_SUFFIX is also wrong as of python 3.3.1
closes #3057
Merge pull request #3463 from juliantaylor/1.7.x-bugfixes

1.7.x bugfixes
BUG: add module extensions to load_library search list

on mac, windows and linux (with >= py3.2) shared libraries and loadable
module have different extensions, so check both for all platforms.
Merge pull request #3476 from juliantaylor/ctypes-ext

BUG: add module extensions to load_library search list
BUG: Make np.load transfer file ownership to the returned NpzFile.

This assures that when the loaded file is closed it also closes the
file descriptor, avoiding a resource warning in Python3.

Closes #3457.
Make comparison function (gt, ge, ...) respect __array_priority__.
Revert "Make comparison function (gt, ge, ...) respect __array_priority__."

This reverts commit aa7a04741146c44ab1735782a89a60b038028bf2.
Commit from @seberg to make comparison use respect __array_priority__
Add test for the array_priority for comparison function.

Conflicts:
	numpy/core/tests/test_multiarray.py
reorder code to remove not needed computation in some cases.
fix comment style.
remove comparison not needed as this is check above and we break in that case.