AJAX Flags

Chipping away at this.