i think (constant crashes, time out, very slow speeds etc.) problems are related to the host , i think you are using shared hosting and not a vps or dedicated host , and i think Mar can help you find the right hosting .
for creating your own gateway , i had never thinking about that .
cheers .