Merge pull request #185 from Jedwondle/master

Added validation to the component service layer.
Merge pull request #186 from Jedwondle/master

Finished the saveComponent function for initial saves.