XBlock and Asides common behaviors

@cpennington pls review