shadow: Move spent parsing to internal function
shadow: Implement fgetspent