Relocate Stack Permissions Check

Stack permissions for a given user can now be checked via a function in
KrakratCommon, rather than exclusively inside of stack_view.