Add implementation for ws_value_int type

Targets #69 
I guess a `try` lock wouldn't be beneficial here, but I don't know how to properly use conditions (by now).

Would you care to add a patch on this branch? If not, you are welcome to teach me how to implement it tomorrow evening!