Reapplying realex gateway addition changes

@davidjrice fyi -- I reapplied your changes against most recent master. 
@seanmacdomhnall I've made this change as well #100 it may need another test