User: return error on duplicate key insertion

I'm new at Go and decided to try close some issues. Even thought this is a simple patch, feedbacks are welcome. :)

This should close #47.