Animation prototype

Added animation in Gallery module, changed core (added events object,
added has_class method) and the same added into sandbox.