load common libs via require

using requirejs config to define deps
Merge pull request #1276 from edx/db/load-common-via-require

load common libs via require