Add a common base class for activatable stuff

Closes #23.
Remove extra empty lines from effect class
Make context class use the new activatable class
Make effect class use the new activatable class
Add a do_in_context method for activatables

Closes #24.
Make context class use the do_in_context method
Make effect class use the do_in_context method
Make model class use the do_in_context method