Massive Update

Fixed bug in casas.php
Created departamentos.php
Extended casas.php to departamentos.php
Created functions in core.php:
getdepartamentobyid()
getdepartamentobycodigo()