Text this: Contributions to the Theory of Piecewise Deterministic Markov Processes and Applications to Generalized Age Processes and Storage Models