Made LogPolicy forward declared
Refactored setFrame into ByteStream
Fixed compiler errors in beacon
Using a factory to generate Messages