Adding published flag and refactoring events controller and routes to be more resource-like.