Restructured Mastery Code

Split "mastery.coffee" into Controllers and separate Directives.