Move charts to views
Honor ACLs for activity charts
Move helper function to separate module
Better name for method

It also returns project and subproject.
Add helper classes for getting every type
Add option to skip ACL check
Use new helper classes in API
Use new helper methods for getting objects