Adds typing for file_path.
Adds rspec mocks.
Implements mail sending as an endpoint.
Changes the name of mail module because of mail gem conflict.