Extract common functionality to xblock-utils

Renamed a file to follow naming conventions? What are the naming conventions, btw?