Add connections
refactor into reflux. Sorry for messy commit :)
Need some initialization work on the connections thing