ISSUE#62
In some cases angular is throwing an error when calling a function assigned
to the $rootScope. This occurs when the call is performed in a partial page.
It is unclear why some pages are working and some aren't. The particular call
that is affected is $rootScope.toDateString().

The fix for this issue was to create some variables in the $scope that
represent the date and to call $rootScope.toDateString() in the controller.

As a side effect of this change I also renamed and moved the DataSearchController.
The new name is DataDirReportController, and I moved it into the DataGroupsControllers.js
file. I also changed the name of the partial and the route to reflect that it is
working on datadirs.
ISSUE#64

Converted toDateString() to a filter and moved it out of $rootScope. Updated
all affected partials and javascript code. One odd thing - filters or the
$rootScope function are being called multiple times by angular. Sometimes
with data, and sometimes without data.

The "fix" for this is to make sure that the parameter in the function
actually has data before attempting to do anything with it.
Issue #46
: Upload file page user interaction features
ISSUE#67
A new argument for sorting data (order_by=fieldname) was added to the API
service. With this addition I removed all default sorting in the API and
instead rely on the user of the API to specify a field to sort on if they
would like data sorted.

This required updating the mcapi service to allow additional args to
be passed in, and updating the calls that used to implicitly rely
on the sorting without asking for it.
ISSUE#5
Removed smart-table since it doesn't do what we need. Added a directive and a filter for
paging. The directive is <paged>, and the filter is "page". Together these two implement
client side paging for tables.

Right now this code introduces some redundancy. In the directive and the filter you
need to specify the page size. These page sizes must be equal. If they aren't you will
get unexpected behavior.

Updated my-tools to make use of the new directive/filter combination.
Working on issues 53, 52 and 71
- added owner to user group and made the code work by checking the permission
Merge branch 'sprint-2' of github.com:prisms-center/materialscommons.org into sprint-2
ISSUE#5
Moved a datagroups call up into the datagroups section from the other section.
ISSUE#5
Page display calculations in the filter were incorrect. Also simplified
the code when I corrected the issue.
ISSUE#5
Remove unused comment block.
Add paging to the tables for data and datgroup pages for user data.
ISSUE#5
Add paging to tables for usergroups, tags and tagged data, and
the upload/download queue.
ISSUE#64

These pages were not using the toDateString filter.
Remove extra blank line in code.
Issues 38, 46, 71, 72
Merge branch 'sprint-2' into ISSUE-5-table-paging

Conflicts:
	partials/account/details/usergroup_list_users.html
ISSUE#34
API Server now returns an extra field with the name of the object only
as the basename and not the rest of the path. We now display that attribute.
Issue 56
API - The checkDatafileAccess function returns a Access Granted for true
Merge branch 'sprint-2' of github.com:prisms-center/materialscommons.org into sprint-2
Issue 74 - Adding user to usergroups check ownership and duplicate users