attachment: Add moveTo method.

moveTo method moves self to another container.
user: Do not allow a nonimage for avatar.

* Client: Alert if user upload nonimage for avatar.
* Server: Do not update avatar if the new one is not an image.
Merge pull request #301 from npcode/fix/upload-avatar-image

Do not accept a non-image file as user's avatar.