move SP api keyfile here.  import views before creating SP manager.  add login and logout templates.