Security groups/rules implemented.
Some serious refactoring.

And some stylistic fixes.
Implemented PUT on security groups.
Proper quota management.