Ensure we deal with the case where N.domain gets assigned as a column vector.
Fix dimension-related bugs in chebfun.mtimes().

It seems that we made a couple of errors in how dimensions are checked
throughout chebfun.mtimes().  Ticket #1215 (which this commit resolves)
points out one of them, but while fixing it, we found more.  This commit
addresses these issues by rewriting mtimes() to ensure that (1) we don't
inappropriately swap the order of the inputs (the problem in #1215) and
(2) that the dimension checks are handled correctly.  Several tests have
been added to guard against similar mistakes in the future.

While we were at it, we noticed that chebfun2.outerProduct() was failing
for quasimatrix (array-of-chebfuns) inputs.  We fix this by replacing
two accesses to the .domain property of a chebfun with calls to the
domain() function.  In reality, this is not very useful, since if you
build a chebfun2 this way, any operations with it (including display())
will result in crashes, but it at least removes a potential source of
asymmetry between array-valued chebfuns and quasimatrices in
chebfun.mtimes().  Perhaps it would be better to try to coerce
quasimatrices into array-valued chebfuns whenever an outer product needs
to be computed and fail if the conversion is not successful.
Nevertheless, this is a side issue and should be handled separately.

Finally, these changes flushed out a handful of places where matrices
were being multiplied in a dimension-mismatched manner but the result
was still OK due to the error made in #1215.  These occurred in the
following files:

 - @chebfun2/lu.m
 - @chebfun2/volt.m
 - tests/misc/quantumstates.m

This commit fixes these issues as well.
Throw an error if we try to assign a column vector to the domain
of a CHEBOP.
Removed vscale from being passed into the constructor in TRIGTECH/COMPOSE.
fixing a bug in deltafun cumsum.
Allowing p.discretization = 'periodic' to specify @trigcolloc disc.

Also added some documentation describing the various discretization
options.
Merge branch 'fix-chebguiExporter-output' of ssh://github.com/chebfun/chebfun into feature-chebgui-periodic
a small change.
Adding an periodic EIG demo.
Various changes to make 'periodic' discretization work in Chebgui.
Merge branch 'development' of ssh://github.com/chebfun/chebfun into feature-chebgui-periodic
We now get the titles of plotcoeffs plots automatically!
Ensure we select the correct discretization when exporting to m-files.
Fixing documentation, allowing pref.ivpSolver = @ode113.
making sure that chebfun(f) has the same domain as f, if f is a chebfun.
making sure tests pass.
improvements to help texts.
removing a redundant output (rVal) from cumsum at all levels.
makins sure cumsum works for quasi matrices with delta functions.
adding a text for quasi delta cumsum.