Merge pull request #21 from rajthilakmca/master

Fix json parsing error
defer Flush of log, load identity file from /var/lib/megam/megamd path
Merge pull request #22 from indykish/master

defer Flush of log, load identity file from /var/lib/megam/megamd path
minor fix to ec2
Merge pull request #23 from indykish/master

minor fix to ec2
upgrade golang to 1.4.beta1
Merge pull request #24 from indykish/master

upgrade golang to 1.4.beta1
Add docker proviioner