CRAFTERCMS-818
Added code to protect against falling into infinite loop when having circular dependencies
Merge pull request #220 from dejan-brkic/2.2.x

CRAFTERCMS-818
CRAFTERCMS-818
minor bug fix
Merge remote-tracking branch 'upstream/2.2.x' into 2.2.x
CRAFTERCMS-819
Improved alter table scripts not to run on each startup
Merge pull request #224 from dejan-brkic/2.2.x

CRAFTERCMS-819
Merge pull request #228 from cortiz/2.2.x

Solves CRAFTERCMS-809
Merge pull request #231 from cortiz/2.2.x

Solves CRAFTERCMS-809 (Cookie Domain for other Files)