Merge branch 'release/0.0.0' into develop
Very rough closure based generic RHC factories.

There are currently some problems.

1. Not all RHCs are defined in the Ax + Bu form.
2. Not all update equations are in the form x(k+1) = Ax(k) + Bu(k). This
   is mainly a comment on runCapturedRHC.
3. Things can get messy if the cost and constraint function handles are
   defined as a closure. Then an interaction between the calling
   environment and the RHC is created. Not sure this can be solved, it
   may be that this behavior is merely documented. It is technically not
   a bug (such behavior could be useful), it is just a challenging
   programming task.
Merge branch 'hotfix/0.0.1' into develop
moved RHC prototypes into src.
Check for mpt_demo1 as an M-file in Cinf.

Prior, if a variable named mpt_demo1 was defined the function would run,
even if the mpt toolbox was not provided.
Reoriented logic in parseOptions of Cinf

Flattened out the logic structure, made it easier to read. Also used the
dynamic field assignment instead of setfield.
Check for mpt_demo1 as an M-File in Pre

Before, it would just check if mpt_demo1 existed, even if it was a
variable. This could lead to a variable mpt_demo1 and no mpt toolbox,
which is required for Pre to run.
Cinf now checks that iterations is > 1
Cinf checks that timeout is positive.
Changed Cinf:NonIntegerArg to Cinf:NonNumericArg.

The check is for numeric inputs, not integer.
Tee floor integer check instead of mod(x,1).

Apparently this is computationally more efficient (slightly). It is also
a bit easier to read.

http://stackoverflow.com/questions/5396551/how-do-i-test-for-integers-in-matlab
Cosmetic changes to TeeClosure.

Edited comments, moved the export of tee to above the function.
Moved mpc tools into mpc folder.
Moved logical2str to utils folder.
Moved Tee to util folder.
Initial add of foldl
Initial add of foldr
Initial add of foldl1
Initial add of foldr1
Initial add of BufferedFoldl