Create maven modules for examples

First pass at pulling example code into maven modules