Reshuffled code to make it more Go like
- moved servlets to separate package
- renamed types for clarity
- added comments to package and methods.