Fixing periodic BCs for BVPs in chebgui. Closes #1136.

Also introduced a periodic BVP demo.