Fixing the code to work under SDK 0.9.4

1. Fixing the code to work under SDK 0.9.4
2. Added correct init WiFi module procedure.

Signed-off-by: Mikhail Grigorev <sleuthhound@gmail.com>