Add resource limits
We should consider adding a way for user processes to query and set resource limits imposed by the system. This would be immediately useful for issues such as ramfs#5 where the ramfs driver could use it at runtime to determine the maximum size of ramdisks.