BeamClient improvements
* moved actual connection to different connection function
* no more promise delay before pulling functions, calls function when actually connected