POST method implemented

Support for post method has been implemented. Need to have more tests though.