Event Title Cleanup

Stripping tags off of the end of the events names. So:

Event Title [tag][tag2]

becomes

Event Title

Also improved some of the debugging information, flagged some other processes that would be good to stay on top of!

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
MySQL DELETE

Huh. Apparently my old, incorrect delete from the event cache snuck back in. Too many merges.

Fixed it again.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/master' into dev-calendar-ics
Better Cache-handling

Updated debugging information some more, to add more filters on which information gets presented in what scenarios.

Updated canvas-api.inc.php to allow calling scripts to catch their own exceptions (godspeed!).

Updated import.php to treat HTTP 401 errors on DELETEs of calendar_events as though they were what they are (HTTP 410, I think) and to keep the cache up-to-date without breaking the rest of the sync.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
RequirEments

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Prep for tag filtering

Set up the framework for applying filtering of events by tags.

Updated some of the HTML and Javascript to make it more elegant. (Because, why not?)

Updated export.php to work with current version of canvas-api.inc.php.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Documentation

Bringing the documentation up to speed with the code and planning.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/master' into dev-calendar-ics
Always use the library

If it's provided, don't rewrite it!

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Oh, for dumb...

Go the tag filters and the HTML tag filtering swapped in filterEvents(). Fixed now.

Apparently, courtesy of Coda's unreliable double-click selection, I ended up with some $$event variables that have now been fixed.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/master' into dev-calendar-ics

Signed-off-by: Seth Battis <seth@battis.net>
Year View

Tweaked phpicalendar to default to the year view, rather than month, which pushes us out through december (addressing [this issue](https://github.com/smtech/canvas/issues/18) partially).

The real deal is that I need to figure out how to define an "infinite" view in phpicalendar to get everything from the future.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Canvas Context Documentation

I had forgotten what each field of $canvasContext was supposed to be. That's what documentation is supposed to be for.

Now there's documentation.

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
User Sync

Users are now syncing (use your profile URL -- http://<canvas instance url>/about/<user id>), resolving [this issue](https://github.com/smtech/canvas/issues/16). I'm still not syncing my own calendar until the [RegEx filter](https://github.com/smtech/canvas/issues/20) is built...

However, groups are broken (probably "still" rather than a new development). [Some sort of permissions error.](https://github.com/smtech/canvas/issues/22) Not. A. High. Priority. (For now.)

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>
Merge branch 'refs/heads/dev-calendar-ics'

Signed-off-by: Seth Battis <SethBattis@stmarksschool.org>

Conflicts:
	www/api/canvas-api.inc.php