Added more tests.
Plugin architecture and global settings implementation.