Merge pull request #29 from evaleev/master

sync w evaleev/BTAS: eliminates warnings with -Wall
Addressed issue with conversion operator from StorageRef<storage_type> to nonconst_storage_type. StorageRef constructor calling this operator was getting constructed with invalid iterators that moreover pointed to a copy of the data instead of original data. Also changed Tensor and TensorView template constructors to no longer require convertability of StorageRef to nonconst_storage_type.
Simplified methods in tensor_func.h by introducing templated type TensorViewOf<_T>.
Added diag(RangeNd) method which constructs a new RangeNd stepping only through the diagonal indices of the original range. (Diagonal indices are where all entries are equal.)
Added diag(T) method which constructs a diagonal TensorView of a Tensor (or another TensorView). Also added test_tensorfunc.C to test folder.
Minor readability improvement.
Created range functions group(r,istart,iend) and flatten(r) which group a set of adjacent indices (or all indices in the case of flatten) into a single index. Added related TensorView methods to tensor_func.h.
Merge pull request #30 from emstoudenmire/master

Fixed major StorageRef bug. Created diag, group, and flatten Range/TensorView slicing methods.
At least clang++ does not handle recommended AAA initialization style (http://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style-almost-always-auto/). Removed the lone instance.
Fixed compilation error in test_ta.C
Merge pull request #8 from BTAS/master

sync w BTAS/BTAS