Devel - Master merge 20141218

- Performance improvements
- Fixed bugs in complex number support
- Fixed issues in memory management
- New tests for element wise operations
- New functions (diag, identity).