Merge pull request #106 from arrayfire/devel

Devel - Master merge 20141113

- Sanitizing CMake
- Checking for cuda compute can be optionally turned off
- FindArrayFire.cmake added
- Fixes to build of google tests
Merge pull request #130 from arrayfire/devel

Devel - Master merge 20141115
Tests use google test present on system if BUILD_GTEST=OFF
Fixed regions unit tests

* Tests failing on Windows due to wronge type of input array
* Added parameter to af_regions to allow selection of output array type
Adding a new option to use system GTEST

- BUILD_TEST=OFF uses pre-built Google test from build directory
Merge pull request #146 from pavanky/gtest

Tests use google test present on system if USE_SYSTEM_GTEST=ON
Merge pull request #147 from pentschev/regions_tests_fix

Fixed regions unit tests
Merge pull request #148 from arrayfire/devel

Devel - Master merge 20141122

- Bug fixes to reductions in CUDA backend
- Fixed memory leaks for JIT in CUDA, OpenCL and CPU
- Removed s8. char now represents b8.
- af_regions now takes output type as a parameter
- Build fixes for Windows.
Update submodules
Added deviceprop functionality to CUDA and OpenCL.

* Placeholder for CPU
Changed REVISION to AF_REVISION
Merge pull request #152 from shehzan10/devel

Added af_deviceprop function.
Corrected arrayfire revision macro name.
Merge branch 'devel', remote-tracking branch 'upstream' into template_matching

Conflicts:
	test/data