Travis-CI Integration & Coding Standards

Added Travis-CI Integration and modified the code to conform to the PSR-2 Coding Standards.

The Code changes are mainly braces on single line if statements and splitting property declarations out.

Also added another example which shows how to implement an array of EmbeddedDocuments.