Weighted Residual Methods for Linear Fractional Differential Equations