add principal
rename to principal/api.rb
fix principal api
add lesson api