solution for issue #154, adding boundary flags 

Added boundary flags for the grid and dimension objects. I changed the method 
apply_q_bcs and apply_aux_bcs to use these flags.

Note: this branch is based on the branch use_idx_for_bc.. Merging this branch only would
be sufficient I guess..