A theory for existence and uniqueness of solutions to three point boundary value problems