integrate LMS into requirejs a bit

Conflicts:
	lms/envs/common.py
	lms/static/coffee/src/courseware.coffee
	lms/static/coffee/src/histogram.coffee
	lms/static/coffee/src/main.coffee
	lms/templates/main.html